#include <iostream>
#include <string>

using namespace std;

class My_int
{
private:
    int my_int;
public:
    My_int(/* args */)
    {
        my_int = 0;
    }
    My_int(int my_int)
    {
        this->my_int = my_int;
    }
    ~My_int()
    {

    }

    // 声明 友元
    friend void show_int(My_int &my_int);
};

void show_int(My_int &my_int)
{
    cout << "my_int = " << my_int.my_int << endl;
}

int main(int argc, char const *argv[])
{
    My_int my_int(10);

    show_int(my_int);
    
    return 0;
}
